//
//  LSZCollectionAndImageViewTableViewCell.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/5/25.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZCollectionAndImageViewTableViewCell.h"

@implementation LSZCollectionAndImageViewTableViewCell

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imageViewMyCollection = [[UIImageView alloc]init];
        self.imageViewMyCollection.image = [UIImage imageNamed:@"我的收藏"];
        [self addSubview:self.imageViewMyCollection];

        self.labelTitle = [[UILabel alloc]init];
        self.labelTitle.text = @"我的收藏";
        self.labelTitle.textColor = titleColorLSZ;
        [LSZSpecialPackaging setLabelAdaptiveSize:self.labelTitle font:15];
        [self addSubview:self.labelTitle];

        if (ScreenWidth == 320) {
            //5
            self.imageViewMyCollection.frame = CGRectMake(15,(45-24)/2,24,24);
            self.labelTitle.frame = CGRectMake(CGRectGetMaxX(self.imageViewMyCollection.frame)+5,(45-24)/2,ScreenWidth-CGRectGetMaxX(self.imageViewMyCollection.frame)-30,24);
        }else if(ScreenWidth == 375){
            // 6 7
            self.imageViewMyCollection.frame = CGRectMake(15,(50-25)/2,25,25);
            self.labelTitle.frame = CGRectMake(CGRectGetMaxX(self.imageViewMyCollection.frame)+5,(50-25)/2,ScreenWidth-CGRectGetMaxX(self.imageViewMyCollection.frame)-30,25);
        }else{
            //plus
            self.imageViewMyCollection.frame = CGRectMake(15,(58-26)/2,26,26);
            self.labelTitle.frame = CGRectMake(CGRectGetMaxX(self.imageViewMyCollection.frame)+5,(58-26)/2,ScreenWidth-CGRectGetMaxX(self.imageViewMyCollection.frame)-30,26);
        }
    }
    return self;
}
@end
